const joi = require('joi')
const registerSchema = joi.object({
    phone: joi.string().required().regex(/^[1][3,4,5,6,7,8,9][0-9]{9}$/).error(new Error('手机号格式错误或为空')),
    password: joi.string().required().error(new Error('密码格式错误或为空'))
})
module.exports = registerSchema